<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <script>
        console.log(3);
        setTimeout(() => {
            console.log(2); 
        }, );
        Promise.resolve().then(()=>{
            console.log(1);
        })
    </script>
    <!-- 这个块单独运行return 3 1 2 -->

    <script>
        async function show(){
            console.log(4);
            var res = await 5;
            console.log(res);
        }
        show();
        console.log(6);
    </script>
    <!-- 这个块单独运行return 1 2 100 -->

    <!-- 两个块一起运行 return 3 1 4 6 5 2 -->
</body>
</html>